import { Notification } from 'element-ui';

let notice=Notification

let duration=3000



export function successMessage(title,message) {
    notice.success({
        title:title,
        message:message,
        duration:duration,
        showClose:true
    })

}


export function normalMessage(title,message) {
    notice.info({
        title:title,
        message:message,
        duration:duration,
        showClose:true
    })

}

export function warningMessage(title,message) {
    notice.warning({
        title:title,
        message:message,
        duration:duration,
        showClose:true
    })

}

export function errorMessage(title,message) {
    notice.error({
        title:title,
        message:message,
        duration:duration,
        showClose:true
    })

}